<%@ page language="java" contentType="text/html; charset=UTF-8" import="org.windblog.core.entity.*,java.util.*,org.windblog.core.*"  pageEncoding="UTF-8"%>
<%@ page import="com.google.appengine.api.blobstore.BlobstoreServiceFactory" %> 
<%@ page import="com.google.appengine.api.blobstore.BlobstoreService" %>
<%
BlobstoreService blobstoreService = BlobstoreServiceFactory.getBlobstoreService();
%>
		<jsp:include page="header.jsp"></jsp:include>
		<jsp:include page="sidebar.jsp"></jsp:include>
		<script type="text/javascript">
			$(function(){
				// Accordion
				$("#accordion").accordion("activate",1);
				$("#media_new").prepend(">");
				$("#upload").button();
			});
		</script>

		<div id="content">
			<h2>Add New Link</h2>
			<hr/>
			<div id="addLinkForm" style="float:left;padding:20px;width:100%"> 
				<form action="<%= blobstoreService.createUploadUrl("/fileupload") %>" method="post" enctype="multipart/form-data">
					Title<br/>
					<input type="text" name="title" /><br/>
					Description<br/>
					<textarea name="description" rows="5" cols="30"></textarea><br/>
					<input type="file" name="theFile"><br/>
					<input id="upload" type="submit" value="Upload File" /> 
				</form>
			</div> 
		</div>
		
		<jsp:include page="footer.jsp"></jsp:include>
